Find Emoji
(13 actions, 10 KB)
0 Comment
https://emoji-api.com/
1 If
[Shortcut Input]
has any value
2 Get Text from
[Shortcut Input]
3 Otherwise
4 Ask for
Text
Input
AllowsMultilineText
:
false
AskActionPrompt
:
🔎 What do you want to search?
5 End If »
7
6 DataJar > GetValueIntent »
keyPath
:
API Credentials.Open Emoji.apiKey
7 Dictionary »
{ "search": "
[5 If Result]
", "access_key": "
[6 Value]
" }
8 ToolboxProForShortcuts > CreateQueryItemIntent »
dictionary
:
[7 Dictionary]
inputType
:
dictionary
9 ToolboxProForShortcuts > BuildURLIntent »
path
:
/emojis
host
:
emoji-api.com
queryItems
:
[8 Query Item]
10 Get Contents of URL
[9 URL]
»
ShowHeaders
:
true
11 Get
Random Item
from List
[10 Contents of URL]
»
12 Stop and Output
[11 Item from List
as Dictionary.character
]